package com.android.clinic.app.ui.doctor;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.android.clinic.app.R;
import com.android.clinic.app.base.BaseActivity;
import com.android.clinic.app.entity.NoticeInfo;
import com.android.clinic.app.utils.Utils;

/**
 * Created by cheng on 2018/3/26.
 * 系统消息
 */
public class SystemMessageActivity extends BaseActivity {

    private TextView tvTime, tvMessage;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_system_message;
    }

    @Override
    protected void initView(@Nullable Bundle savedInstanceState) {
        setTitleBarTitle("系统消息");
        setTitleBarLeftResource(R.drawable.icon_back);

        tvTime = (TextView) findViewById(R.id.tv_time);
        tvMessage = (TextView) findViewById(R.id.tv_message);

        NoticeInfo noticeInfo = (NoticeInfo) this.getIntent().getSerializableExtra("message");

        tvTime.setText(Utils.getFormatTime(noticeInfo.getCreateTime()));
        tvMessage.setText(noticeInfo.getContent());

    }
}
